package com.ywk.junit.business.service;

import com.ywk.junit.business.entity.Student;
import com.ywk.junit.business.mapper.StudentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author zbh
 * @Date 2023/6/28
 */
@Service
public class StudentService {

    @Autowired
    StudentMapper mapper;

    public Integer getCount(){
        Integer count = mapper.getCount();
        return count;
    }

    public List<Student> findAll(){
        List<Student> students = mapper.findAll();
        return students;
    }
}
